<div class="layui-fluid" lay-title="测试页">
  <div class="layui-row layui-col-space15">
    <div class="layui-card">
      <div class="layui-card-header">
        <i class="layui-icon layui-icon-team"></i>&nbsp;测试页
      </div>
      <div class="layui-card-body">
        <div id="area1">
          <button onclick="test()">测试</button>
        </div>
      </div>
    </div>
  </div>
  <div id="windowArea" style="display: none;"></div>
</div>

<script>
  layui.use(["admin", "table", "meterDetail", "element", "inputBox"], function(
    admin,
    table,
    meterDetail,
    element,
    inputBox
  ) {
    var $ = layui.$;
    var table = layui.table;
    var laydate = layui.laydate;
    var meterDetail = meterDetail;
    var element = layui.element;
    var inputBox = layui.inputBox;

    test = function() {
      //meterDetail.show("37551908205919");
      inputBox.show("测试标题", "测试提示文字", function(layerId, data) {
        layer.close(layerId);
        alert(data);
      });
    };
  });
</script>
